package com.umgsai.thread.thread01;

public class MyThread6 extends Thread {

	@Override
	public void run() {
		System.out.println("run=" + this.isAlive());
	}
	
	public static void main(String[] args) throws InterruptedException {
		MyThread6 thread = new MyThread6();
		System.out.println("begin=" + thread.isAlive());
		thread.start();
		Thread.sleep(1000);
		System.out.println("end=" + thread.isAlive());//执行到此处时，thread已结束
	}
}
